how to handle multiple exception in java